package com.booksystem.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import lombok.Data;

/**
 * <p>
 *   创建支付订单请求参数对象
 * </p>
 * @author 段伟豪
 */
@Data
@ApiModel(description = "创建支付订单请求参数")
public class CreatePaymentDTO {

    /**
     * 用户ID
     */
    @NotNull(message = "用户ID不能为空")
    @ApiModelProperty(value = "用户ID", required = true)
    private Long userId;

    /**
     * 订单ID
     */
    @NotNull(message = "订单ID不能为空")
    @ApiModelProperty(value = "订单ID", required = true)
    private Long orderId;

    /**
     * 支付方式
     */
    @NotBlank(message = "支付方式不能为空")
    @ApiModelProperty(value = "支付方式", required = true)
    private String paymentMethod;

    /**
     * 支付金额
     */
    @NotNull(message = "支付金额不能为空")
    @ApiModelProperty(value = "支付金额", required = true)
    private BigDecimal amount;
}